package com.ufgov.agcfs.baseData.entity;

import java.io.Serializable;


public class BookType implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id;
	private String nd;
	private String accBookTypeCode;
	private String accBookTypeName;
	private String codeRule;

	public BookType() {
	}
	
	public String getNd() {
		return this.nd;
	}
	
	public void setNd(String nd) {
		this.nd = nd;
	}
	
	public String getAccBookTypeCode() {
		return this.accBookTypeCode;
	}
	
	public void setAccBookTypeCode(String accBookTypeCode) {
		this.accBookTypeCode = accBookTypeCode;
	}


	public String getAccBookTypeName() {
		return this.accBookTypeName;
	}

	public void setAccBookTypeName(String accBookTypeName) {
		this.accBookTypeName = accBookTypeName;
	}

	public String getCodeRule() {
		return this.codeRule;
	}

	public void setCodeRule(String codeRule) {
		this.codeRule = codeRule;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof BookType)) {
			return false;
		}
		BookType castOther = (BookType)other;
		return 
			this.nd.equals(castOther.nd)
			&& this.accBookTypeCode.equals(castOther.accBookTypeCode);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.nd.hashCode();
		hash = hash * prime + this.accBookTypeCode.hashCode();
		
		return hash;
	}

}